package team.yidong.fenda.wx.controller;

import net.sf.json.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import team.yidong.fenda.service.HospitalDepartmentService;

/**
 * Created by xuanlong on 2018/3/17.
 */
@Controller
public class WxHospitalDepartmentController {
    @Autowired
    HospitalDepartmentService hospitalDepartmentService;

    @RequestMapping("/wx/findHospitalDepartment")
    @ResponseBody
    public JSONArray findHospitalDepartment(@RequestParam Integer hospitalId) {
        return hospitalDepartmentService.findHospitalDepartment(hospitalId);
    }
}
